package com.botao.tip.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {
    public static String format(Date date) {
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:s").format(date);
    }

    public static String formatYear(Date date) {
        return new SimpleDateFormat("yyyy-MM-dd").format(date);
    }
}
